/*
 * Copyright 2020 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import 'mixins';
@import '../DropDown/mixins';
@import '../common/Lightweight';

@include Sidecar {
  /* We can get rid of this once we get rid of Carbon :( */
  section[hidden] {
    display: none;
  }

  @include DropdownList {
    padding: 0;
    font-size: 0.75rem;
    color: var(--color-sidecar-toolbar-foreground);
  }
}

@include SidecarTopTabLabel {
  color: var(--color-text-01);
}

@include SidecarTopTabSelectedBorder {
  border-color: var(--color-base0C);
}

/** See https://github.com/kubernetes-sigs/kui/issues/8007 */
@include SidecarTopTab {
  flex: 1;
  display: flex;
}

/** See https://github.com/kubernetes-sigs/kui/issues/8017 */
@include SidecarTopTabs {
  .pf-c-tabs__scroll-button {
    color: var(--color-text-02);
    background-color: var(--color-sidecar-header);

    &[disabled] {
      color: var(--color-base04);
    }

    &:before {
      /* this is for the right/left border of the bottom; PF seems to assume some other framing that we don't have */
      display: none;
    }
  }
}
